import request from '@/http'

// 树请求
export const tree = async () => {
  return await request.get({
    url: 'tEmergencyResource/tree',
  })
}

// 根据行政获取队伍
export const getTeams = async (data) => {
  return await request.post({
    url: `api/bizz/tEmergencyResource/GetTeams`,
    data
  })
}

// 根据队伍id获取数据
export const getEquipments = async (teamId:string) => {
  return await request.get({
    url: `api/bizz/tEmergencyResource/GetEquipments?teamId=${teamId}`,
  })
}

// 根据队伍id获取队员
export const GetPeople = async (teamId:string) => {
  return await request.get({
    url: `/api/bizz/tEmergencyResource/GetPeople?teamId=${teamId}`,
  })
}

// 根据队伍id获取队员
export const getMaps = async (data: object) => {
  return await request.post({
    url: `/api/bizz/tEmergencyResource/maps`,
    data,
  })
}